<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: compare&lt; AbsoluteTolerance&lt; U &gt; &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Compute Library
   &#160;<span id="projectnumber">18.03</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.xhtml"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.xhtml"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="inherits.xhtml"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.xhtml"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structarm__compute_1_1test_1_1validation_1_1compare_3_01_absolute_tolerance_3_01_u_01_4_01_4.xhtml','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">compare&lt; AbsoluteTolerance&lt; U &gt; &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_validation_8h_source.xhtml">Validation.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for compare&lt; AbsoluteTolerance&lt; U &gt; &gt;:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="structarm__compute_1_1test_1_1validation_1_1compare_3_01_absolute_tolerance_3_01_u_01_4_01_4__coll__graph.svg" width="402" height="351"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a target="top" href="graph_legend.xhtml">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa385aa18f5e42db5a415c25a90f4193d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structarm__compute_1_1test_1_1validation_1_1compare_3_01_absolute_tolerance_3_01_u_01_4_01_4.xhtml#aa385aa18f5e42db5a415c25a90f4193d">operator bool</a> () const </td></tr>
<tr class="separator:aa385aa18f5e42db5a415c25a90f4193d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_structarm__compute_1_1test_1_1validation_1_1compare__base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_structarm__compute_1_1test_1_1validation_1_1compare__base')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml">compare_base&lt; AbsoluteTolerance&lt; U &gt; &gt;</a></td></tr>
<tr class="memitem:a42c8a61b86fc900746fef0f1f70a9430 inherit pub_methods_structarm__compute_1_1test_1_1validation_1_1compare__base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#a42c8a61b86fc900746fef0f1f70a9430">compare_base</a> (typename <a class="el" href="classarm__compute_1_1test_1_1validation_1_1_absolute_tolerance.xhtml">AbsoluteTolerance</a>&lt; U &gt;::value_type target, typename <a class="el" href="classarm__compute_1_1test_1_1validation_1_1_absolute_tolerance.xhtml">AbsoluteTolerance</a>&lt; U &gt;::value_type reference, <a class="el" href="classarm__compute_1_1test_1_1validation_1_1_absolute_tolerance.xhtml">AbsoluteTolerance</a>&lt; U &gt;tolerance=<a class="el" href="classarm__compute_1_1test_1_1validation_1_1_absolute_tolerance.xhtml">AbsoluteTolerance</a>&lt; U &gt;(0))</td></tr>
<tr class="separator:a42c8a61b86fc900746fef0f1f70a9430 inherit pub_methods_structarm__compute_1_1test_1_1validation_1_1compare__base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_attribs_structarm__compute_1_1test_1_1validation_1_1compare__base"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_structarm__compute_1_1test_1_1validation_1_1compare__base')"><img src="closed.png" alt="-"/>&#160;Data Fields inherited from <a class="el" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml">compare_base&lt; AbsoluteTolerance&lt; U &gt; &gt;</a></td></tr>
<tr class="memitem:a43df64dda9f48ddc325ea5ee5cce504c inherit pub_attribs_structarm__compute_1_1test_1_1validation_1_1compare__base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1test_1_1validation_1_1_absolute_tolerance.xhtml">AbsoluteTolerance</a>&lt; U &gt;::value_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#a43df64dda9f48ddc325ea5ee5cce504c">_target</a></td></tr>
<tr class="separator:a43df64dda9f48ddc325ea5ee5cce504c inherit pub_attribs_structarm__compute_1_1test_1_1validation_1_1compare__base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cdfbe0f92ba33d9d5c84bc06600640c inherit pub_attribs_structarm__compute_1_1test_1_1validation_1_1compare__base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1test_1_1validation_1_1_absolute_tolerance.xhtml">AbsoluteTolerance</a>&lt; U &gt;::value_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#a9cdfbe0f92ba33d9d5c84bc06600640c">_reference</a></td></tr>
<tr class="separator:a9cdfbe0f92ba33d9d5c84bc06600640c inherit pub_attribs_structarm__compute_1_1test_1_1validation_1_1compare__base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4fd55d362930310365e320208784ede inherit pub_attribs_structarm__compute_1_1test_1_1validation_1_1compare__base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1test_1_1validation_1_1_absolute_tolerance.xhtml">AbsoluteTolerance</a>&lt; U &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#aa4fd55d362930310365e320208784ede">_tolerance</a></td></tr>
<tr class="separator:aa4fd55d362930310365e320208784ede inherit pub_attribs_structarm__compute_1_1test_1_1validation_1_1compare__base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename U&gt;<br />
struct arm_compute::test::validation::compare&lt; AbsoluteTolerance&lt; U &gt; &gt;</h3>


<p>Definition at line <a class="el" href="_validation_8h_source.xhtml#l00261">261</a> of file <a class="el" href="_validation_8h_source.xhtml">Validation.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aa385aa18f5e42db5a415c25a90f4193d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">operator bool </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_validation_8h_source.xhtml#l00265">265</a> of file <a class="el" href="_validation_8h_source.xhtml">Validation.h</a>.</p>

<p>References <a class="el" href="tests_2validation_2_fixed_point_8h_source.xhtml#l00914">arm_compute::test::fixed_point_arithmetic::detail::abs()</a>, <a class="el" href="_toolchain_support_8h_source.xhtml#l00328">arm_compute::support::cpp11::isfinite()</a>, <a class="el" href="caffe__data__extractor_8py_source.xhtml#l00019">caffe_data_extractor::type</a>, <a class="el" href="namespacearm__compute.xhtml#a1ce9b523fd4f3b5bbcadcd796183455aa4c614360da93c0a041b22e537de151eb">arm_compute::U</a>, and <a class="el" href="hwc_8hpp_source.xhtml#l00278">value</a>.</p>
<div class="fragment"><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    {</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        <span class="keywordflow">if</span>(!<a class="code" href="namespacearm__compute_1_1support_1_1cpp11.xhtml#a079a0ecb5fc05e0a107785f2573bc854">support::cpp11::isfinite</a>(this-&gt;<a class="code" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#a43df64dda9f48ddc325ea5ee5cce504c">_target</a>) || !<a class="code" href="namespacearm__compute_1_1support_1_1cpp11.xhtml#a079a0ecb5fc05e0a107785f2573bc854">support::cpp11::isfinite</a>(this-&gt;<a class="code" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#a9cdfbe0f92ba33d9d5c84bc06600640c">_reference</a>))</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;        {</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;        }</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;        <span class="keywordflow">else</span> <span class="keywordflow">if</span>(this-&gt;<a class="code" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#a43df64dda9f48ddc325ea5ee5cce504c">_target</a> == this-&gt;<a class="code" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#a9cdfbe0f92ba33d9d5c84bc06600640c">_reference</a>)</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;        {</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;        }</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;        <span class="keyword">using</span> comparison_type = <span class="keyword">typename</span> <a class="code" href="hwc_8hpp.xhtml#a0f61d63b009d0880a89c843bd50d8d76">std::conditional&lt;std::is_integral&lt;U&gt;::value</a>, int64_t, <a class="code" href="namespacearm__compute.xhtml#a1ce9b523fd4f3b5bbcadcd796183455aa4c614360da93c0a041b22e537de151eb">U</a>&gt;<a class="code" href="namespacecaffe__data__extractor.xhtml#a7aead736a07eaf25623ad7bfa1f0ee2d">::type</a>;</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;        <span class="keyword">const</span> comparison_type abs_difference(<a class="code" href="namespacearm__compute_1_1test_1_1fixed__point__arithmetic_1_1detail.xhtml#ae115fc750a92fb6a5e094998b56fcc56">std::abs</a>(static_cast&lt;comparison_type&gt;(this-&gt;<a class="code" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#a43df64dda9f48ddc325ea5ee5cce504c">_target</a>) - static_cast&lt;comparison_type&gt;(this-&gt;<a class="code" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#a9cdfbe0f92ba33d9d5c84bc06600640c">_reference</a>)));</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;        <span class="keywordflow">return</span> abs_difference &lt;= static_cast&lt;comparison_type&gt;(this-&gt;<a class="code" href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#aa4fd55d362930310365e320208784ede">_tolerance</a>);</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    }</div><div class="ttc" id="structarm__compute_1_1test_1_1validation_1_1compare__base_xhtml_a9cdfbe0f92ba33d9d5c84bc06600640c"><div class="ttname"><a href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#a9cdfbe0f92ba33d9d5c84bc06600640c">arm_compute::test::validation::compare_base&lt; AbsoluteTolerance&lt; U &gt; &gt;::_reference</a></div><div class="ttdeci">AbsoluteTolerance&lt; U &gt;::value_type _reference</div><div class="ttdef"><b>Definition:</b> <a href="_validation_8h_source.xhtml#l00253">Validation.h:253</a></div></div>
<div class="ttc" id="structarm__compute_1_1test_1_1validation_1_1compare__base_xhtml_aa4fd55d362930310365e320208784ede"><div class="ttname"><a href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#aa4fd55d362930310365e320208784ede">arm_compute::test::validation::compare_base&lt; AbsoluteTolerance&lt; U &gt; &gt;::_tolerance</a></div><div class="ttdeci">AbsoluteTolerance&lt; U &gt; _tolerance</div><div class="ttdef"><b>Definition:</b> <a href="_validation_8h_source.xhtml#l00254">Validation.h:254</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1support_1_1cpp11_xhtml_a079a0ecb5fc05e0a107785f2573bc854"><div class="ttname"><a href="namespacearm__compute_1_1support_1_1cpp11.xhtml#a079a0ecb5fc05e0a107785f2573bc854">arm_compute::support::cpp11::isfinite</a></div><div class="ttdeci">bool isfinite(T value)</div><div class="ttdef"><b>Definition:</b> <a href="_toolchain_support_8h_source.xhtml#l00328">ToolchainSupport.h:328</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_a1ce9b523fd4f3b5bbcadcd796183455aa4c614360da93c0a041b22e537de151eb"><div class="ttname"><a href="namespacearm__compute.xhtml#a1ce9b523fd4f3b5bbcadcd796183455aa4c614360da93c0a041b22e537de151eb">arm_compute::Channel::U</a></div><div class="ttdoc">Cb/U channel. </div></div>
<div class="ttc" id="hwc_8hpp_xhtml_a0f61d63b009d0880a89c843bd50d8d76"><div class="ttname"><a href="hwc_8hpp.xhtml#a0f61d63b009d0880a89c843bd50d8d76">value</a></div><div class="ttdeci">void * value</div><div class="ttdef"><b>Definition:</b> <a href="hwc_8hpp_source.xhtml#l00278">hwc.hpp:278</a></div></div>
<div class="ttc" id="structarm__compute_1_1test_1_1validation_1_1compare__base_xhtml_a43df64dda9f48ddc325ea5ee5cce504c"><div class="ttname"><a href="structarm__compute_1_1test_1_1validation_1_1compare__base.xhtml#a43df64dda9f48ddc325ea5ee5cce504c">arm_compute::test::validation::compare_base&lt; AbsoluteTolerance&lt; U &gt; &gt;::_target</a></div><div class="ttdeci">AbsoluteTolerance&lt; U &gt;::value_type _target</div><div class="ttdef"><b>Definition:</b> <a href="_validation_8h_source.xhtml#l00252">Validation.h:252</a></div></div>
<div class="ttc" id="namespacecaffe__data__extractor_xhtml_a7aead736a07eaf25623ad7bfa1f0ee2d"><div class="ttname"><a href="namespacecaffe__data__extractor.xhtml#a7aead736a07eaf25623ad7bfa1f0ee2d">caffe_data_extractor.type</a></div><div class="ttdeci">type</div><div class="ttdef"><b>Definition:</b> <a href="caffe__data__extractor_8py_source.xhtml#l00019">caffe_data_extractor.py:19</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1test_1_1fixed__point__arithmetic_1_1detail_xhtml_ae115fc750a92fb6a5e094998b56fcc56"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1fixed__point__arithmetic_1_1detail.xhtml#ae115fc750a92fb6a5e094998b56fcc56">arm_compute::test::fixed_point_arithmetic::detail::abs</a></div><div class="ttdeci">fixed_point&lt; T &gt; abs(fixed_point&lt; T &gt; x)</div><div class="ttdef"><b>Definition:</b> <a href="tests_2validation_2_fixed_point_8h_source.xhtml#l00914">FixedPoint.h:914</a></div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>tests/validation/<a class="el" href="_validation_8h_source.xhtml">Validation.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1test.xhtml">test</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1test_1_1validation.xhtml">validation</a></li><li class="navelem"><a class="el" href="structarm__compute_1_1test_1_1validation_1_1compare_3_01_absolute_tolerance_3_01_u_01_4_01_4.xhtml">compare&lt; AbsoluteTolerance&lt; U &gt; &gt;</a></li>
    <li class="footer">Generated on Fri Mar 2 2018 12:38:01 for Compute Library by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
